<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

use DB;

class Login extends Model
{
	//执行登录  数据库查询:控制器怎么写 MODEl怎么写  
    public function doLogin($userName)
    {
    	
        $data = DB::table("user")->where("username",$userName)->first();
        return $data;

    }
}
